package org.monkey.common.cbs.entity.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.monkey.common.cbs.entity.mo.FieldOrder;

@Data
@MappedSuperclass
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("通用查询条件 仅限后期后管使用")
public class BasePageForm {

  @NotNull(message = "当前页数")
  @ApiModelProperty(name = "pageNumber", value = "当前页 默认为1", example = "1")
  Integer pageNumber = 1;
  @NotNull(message = "每页条数")
  @ApiModelProperty(name = "pageSize", value = "每页条数 默认为10", example = "10")
  Integer pageSize = 10;
  @ApiModelProperty(name = "hump", value = "是否驼峰转换", example = "true")
  boolean hump = true;
  @ApiModelProperty(name = "fieldOrders", value = "排序字段 有顺序的")
  List<FieldOrder> fieldOrders;


}
